<%-- 
    Document   : Index
    Created on : 02-jul-2014, 20:34:53
    Author     : David
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

    <head>
        <title>.:VENTA ONLINE:.</title>
    </head>
    <body bgcolor="#ACD3EE">
        <h1><center>Tienda ONLINE!</center></h1>
          <tr>
                        <% if (request.getAttribute("cliente") != null) {%>
                    <h2>Bienvenido <%= request.getAttribute("cliente")%>
                        <%} else { %>
                    </h2>
                    <h2>Bienvenido usuario no registrado</h2><%}%>
                    </tr>

                    
        <table width="30%" border="3" bgcolor="#006697" align="right">
            <tr>

            <div>
                <form action="transaccion" method="post"> 
                    <td> Usuario:</td>
                    <td>  <input type="text" name="user"></td>
                    <tr>
                        <td> Clave:</td>
                        <td><input type="password" name="pass"></td>
                    </tr>
                    <tr>
                        <td> Tipo:</td>
                        <td><select size="1" type="text" name="tipo">
                                <option>administrador</option>
                                <option selected="selected">cliente</option>
                            </select></td>
                    </tr>
                    <tr>
                        <th colspan="2"><h1><input type="submit" value="Login"></h1></th>
                </form>
                <% if (request.getAttribute("cliente") != null) {%>
                    <form action="carrito" method="post">
                        <%} else {%>
                        <form action="errorNoLog.html" method="post">
                            <%}%>
                    </tr>
            </div>

        </tr>
    </table> 
    <table width="70%" border="2" bgcolor="#006699" align="left">
        <th colspan="4"><h1><font color="white">Listado de Productos</font></h1></th>
    <tr>
        <td bgcolor="black" width="10%"><font color="white"><h3 align="center">Fotografia<h3></td>
                    <td bgcolor="black"><font color="white"><h3 align="center">Nombre</h3></td>
                    <td bgcolor="black"><font color="white"><h3 align="center">Valor</h3></td>
                    <td bgcolor="black"><font color="white"><h3 align="center">Seleccione</h3></td>

                    </tr>
                  
                            <tr>
                                <td><IMG SRC="media/1969-shelby-mustang-gt500-eleanor.jpg" width="130" height="130"></td>
                                <td><h4>Shelby Cobra</h4></td>
                                <td><h5>Precio $50.000 USD</h5></td>
                                <td>
                                    <input type="checkbox" name="producto" value="Shelby">
                                </td>
                            </tr>
                            <tr>
                                <td><IMG SRC="media/dodge.jpg" width="130" height="130"></td>
                                <td><h4>Dodge Charger</h4></td>
                                <td><h5>Precio $40.000 USD</h5></td>
                                <td>
                                    <input type="checkbox" name="producto" value="Dodge">
                                </td>
                            </tr>
                            <tr>
                                <td><IMG SRC="media/ferrari-550-maranello-front-1_106.jpg" width="130" height="130"></td>
                                <td><h4>Ferrari 550</h4></td>
                                <td><h5>Precio $60.000 USD</h5></td>
                                <td>
                                    <input type="checkbox" name="producto" value="Ferrari">
                                </td>
                            </tr>

                        <th colspan="4"><h1>
                           <font color="white"><input type="submit" value="Agregar al carro" style="width:300px; height:100px;"></font></h1></th>
                          </form>

                        </table>

                        </body>
                        </html>
